//
//  PCMeStore.h
//  PhotoCircle
//
//  Created by GL on 15/12/15.
//  Copyright © 2015年 wujungao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PCUserGameModel.h"

typedef void (^successBlock)();
typedef void (^failBlock)();

typedef void (^joinMatchSuccessBlock)();

@class PCUserModel;
@interface PCMeStore : NSObject

@property(nonatomic, strong) PCUserModel *userModel;
@property(nonatomic, strong) PCUserGameModel *mGameModel;
@property(nonatomic,strong)NSURLSessionDataTask *dataTask;

+ (instancetype)sharedMeStore;

-(void)clearUserInfo;

-(void)selectedIndexGameModel:(PCUserGameModel *)gModel;

// 请求个人中心数据
-(void)requestUserListDataWith:(NSDictionary*)paramDic
                successHandler:(successBlock)responSuccess
                  errorHandler:(failBlock)responError;

// 请求验证码
-(void)requestUserCaptcha:(NSDictionary*)paramDic
           successHandler:(successBlock)responSuccess
             errorHandler:(failBlock)responError;

// 用户注册
-(void)requestUserRegister:(NSDictionary*)paramDic
            successHandler:(successBlock)responSuccess
              errorHandler:(failBlock)responError;

// 用户登录
-(void)requestUserLogin:(NSDictionary*)paramDic
         successHandler:(successBlock)responSuccess
           errorHandler:(failBlock)responError;

// 修改密码
-(void)requestResetPassWord:(NSDictionary*)paramDic
             successHandler:(successBlock)responSuccess
               errorHandler:(failBlock)responError;

//修改昵称
-(void)modifyUserName:(NSDictionary*)paramDic
       successHandler:(successBlock)responSuccess
         errorHandler:(failBlock)responError;

//修改性别
-(void)modifyUserGender:(NSDictionary*)paramDic
         successHandler:(successBlock)responSuccess
           errorHandler:(failBlock)responError;

-(void)resetUserPasWord:(NSDictionary*)paramDic
         successHandler:(successBlock)responSuccess
           errorHandler:(failBlock)responError;

// 上传头像
-(void)modifyUserHeader:(NSDictionary*)paramDic
                  image:(NSData*)imageData
         successHandler:(successBlock)responSuccess
           errorHandler:(failBlock)responError;

//个人相册列表
-(void)requestUserAlbumList:(NSDictionary*)paramDic
             successHandler:(successBlock)responSuccess
               errorHandler:(failBlock)responError;

// 相册加载更多
-(void)loadMoreAlbumList:(NSDictionary*)paramDic
          successHandler:(successBlock)responSuccess
            errorHandler:(failBlock)responError;

//个人赛事列表
-(void)requestUserGameList:(NSDictionary*)paramDic
            successHandler:(successBlock)responSuccess
              errorHandler:(failBlock)responError;

//加载更多赛事
-(void)loadMoreUserGameList:(NSDictionary*)paramDic
             successHandler:(successBlock)responSuccess
               errorHandler:(failBlock)responError;

// 意见反馈
-(void)requestUserFeedBack:(NSDictionary*)paramDic
            successHandler:(successBlock)responSuccess
              errorHandler:(failBlock)responError;

// 支付宝
-(void)requestAliPay:(NSDictionary*)paramDic
      successHandler:(successBlock)responSuccess
        errorHandler:(failBlock)responError;

// 放弃参赛
-(void)giveUpGame:(NSDictionary*)paramDic
   successHandler:(successBlock)responSuccess
     errorHandler:(failBlock)responError;

// 上传原图
-(void)upLoadRealImage:(NSDictionary*)paramDic
                 image:(NSData*)imageData
        successHandler:(successBlock)responSuccess
          errorHandler:(failBlock)responError;

//上传图片至相册
-(void)upLoadPhotoToAlbum:(NSDictionary*)paramDic
             image:(NSData*)imageData
    successHandler:(successBlock)responSuccess
      errorHandler:(failBlock)responError;

//上传参赛
-(void)uploadPhotoForJoinMatch:(NSDictionary*)paramDic
                         image:(NSData*)imageData
                successHandler:(successBlock)responSuccess
                  errorHandler:(failBlock)responError;

@end
